cmake_minimum_required(VERSION 3.10.3)
project(cprimerPractice C)

set(CMAKE_C_STANDARD 11)

include_directories("${PROJECT_SOURCE_DIR}/unit12")
add_subdirectory(unit12)
set(EXTRA_LIBS ${EXTRA_LIBS} unit12)
include_directories("${PROJECT_SOURCE_DIR}/lib")
add_subdirectory(lib)
set(EXTRA_LIBS1 ${EXTRA_LIBS} lib)
#include_directories("${PROJECT_SOURCE_DIR}/unit13")
#add_subdirectory(unit13)
#set(EXTRA_LIBS ${EXTRA_LIBS13} unit13)
include_directories("${PROJECT_SOURCE_DIR}/unit17")
add_subdirectory(unit17)
set(EXTRA_unit17 ${EXTRA_LIBS} unit17)

add_executable(cprimerPractice unit17/p6.c)
target_link_libraries(cprimerPractice ${EXTRA_LIBS})
target_link_libraries(cprimerPractice ${EXTRA_LIBS1})
target_link_libraries(cprimerPractice ${EXTRA_unit17})
#target_link_libraries(cprimerPractice ${EXTRA_LIBS13})